<?php
/**
  * Mar 5, 2008
  *
  * Coded by: Ropu
  *
  */

//$hacker = new Hacker();

$id = "1235";
$network = "RopuTestNetwork";

include 'login.php';

echo "<xmp>";
$hacker->getApps();
print_r($os);
print_r($hacker);

$hacker->setNickname('Ropu Ny');
$hacker->setExtraInfo('testinng');
$hacker->setHackathon(1);
$hacker->save();
//$hacker = new Hacker();
$appV = new AppVersion();
$appV->setUrl('http://chau.com');
$appV->setVersion('v0.6');
$app = new App(6);
$app->setName('Versioned App2');
$app->setTitle('title3');
$app->setDescription('description4');
$app->setThumb('thumb5');
$app->save();
$app->newVersion($appV);
print_r($app);
//$hacker->addApp($app);

print_r($app->getLastVersion());

//print_r($hacker->getApps());
//try {
//  $hacker->addFavoriteApp($app);
//} catch (Exception $e) {
//  print_r($e);
//}
//echo $hacker->removeFavoriteApp($app);
//echo $hacker->rateApp($app, 5);
//echo $hacker->rateApp(new App(4), 5);


